/*

Author   : chaos

FileName : sum.cpp

Date     : 17/08/17 23:24:13

*/
#include <iostream>
using namespace std;
#define NDEBUG
#include <cassert>
int main(int argc ,char *argv[])
{
    int i, sum = 0;

    for( i = 0; i <= 100 ; i++ )
    {
        sum = sum + i;
#ifndef NDEBUG
        if(i == 50)
            cout << "The sum from 1 to 50 is " << sum << ". " << endl;
#endif
        assert(i==50);
    }
    cout << "The sum from 1 to 100 is" << sum << "." << endl;

    return 0;
}
